$(document).ready(function(){
    $(window).scroll(function(event){
        if ($(window).scrollTop() > 200) {
            $("#go_top").show();
        } else {
            $("#go_top").hide();
        }
    });
    $("#go_top").click(function(){
        $('body,html').animate({scrollTop: 0}, "slow");
    });
    $("img.lazy").lazyload({
        effect : "fadeIn",
        threshold : 200
    });
});
var _hmt = _hmt || [];
(function() {
    var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?3d0f46b4bb96b324fee66680619b38ec";
    var s = document.getElementsByTagName("script")[0]; 
        s.parentNode.insertBefore(hm, s);
})();
(function(){
    var bp = document.createElement('script');
    var curProtocol = window.location.protocol.split(':')[0];
    if (curProtocol === 'https') {
        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';        
    }
    else {
        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
    }
    var s = document.getElementsByTagName("script")[1];
    s.parentNode.insertBefore(bp, s);
})();
(function(){
   var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?3c1d51296636a9f3c222d7e4ac6d2912":"https://jspassport.ssl.qhimg.com/11.0.1.js?3c1d51296636a9f3c222d7e4ac6d2912";
   document.write('<script src="' + src + '" id="sozz"><\/script>');
})();
